package com.sq.universe.log.feign;

import com.sq.universe.base.entity.RespEntity;
import com.sq.universe.log.entity.LogCenterEntity;
import com.sq.universe.log.feign.fallback.LogFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name = "universe-log-dev",fallback = LogFeignFallback.class)
@RequestMapping("/log/logCenter")
public interface LogFeign {

    /**
     * 接收日志
     * @param logCenterEntity
     * @return
     */
    @PostMapping("/receiveLog")
    public RespEntity receiveLog(@RequestBody LogCenterEntity logCenterEntity);
}
